import requests
import time

url = "http://8.148.20.110:1579/location/update"
#mac = "D8:3A:DD:57:7C:ED"
mac = "1234"
location = "114.421993,30.474995"

while True:
    data = {
        "mac": mac,
        "location": location
    }
    response = requests.post(url, json=data)
    print(response.text)
    time.sleep(5)
